package sharewithus.common;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Title:StartUp
 * Description:系统启动加载类
 * @Create_by:Vince Yu
 * @Create_date:2012-5-11
 * @Last_Edit_By:
 * @Edit_Description
 * @version:ShareWithUs 1.0
 * 
 */
@SuppressWarnings("serial")
public class StartUp extends HttpServlet {

	@Override
	public void init() throws ServletException {
		ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext("config/spring/applicationContext.xml");
		Common.factory = (BeanFactory) appContext;
		super.init();
	}
}

